package com.yunyan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunyan.entity.RecommendData;
import com.yunyan.mapper.RecommendMapper;
import com.yunyan.service.RecommendService;
import org.springframework.stereotype.Service;

@Service
public class RecommendServiceImpl extends ServiceImpl<RecommendMapper, RecommendData>
implements RecommendService {
    @Override
    public Object listUserRecommend(String userId) {
        return this.list(new LambdaQueryWrapper<RecommendData>()
                .eq(RecommendData::getUserId, userId)
        );
    }
}
